//
//  AboutViewController.m
//  ShrimpCrowdordering
//
//  Created by 郑洲 on 2018/8/6.
//  Copyright © 2018年 郑洲. All rights reserved.
//

#import "AboutViewController.h"
#import "PersonShowView.h"

@interface AboutViewController ()

@end

@implementation AboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"关于虾拼";
    
    [self setUI];
}

- (void)setUI {
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, ScreenX375(107))];
    view.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:view];

    UIImageView *headImg = [[UIImageView alloc] initWithFrame:CGRectMake((SCREEN_WIDTH - ScreenX375(80)) / 2, ScreenX375(12), ScreenX375(80), ScreenX375(80))];
    headImg.image = ImageWithName(@"默认客服头像");
    [view addSubview:headImg];

    UIImageView *titleImg = [[UIImageView alloc] initWithFrame:CGRectMake((SCREEN_WIDTH - ScreenX375(214)) / 2, ScreenX375(102), ScreenX375(214), ScreenX375(14))];
    titleImg.image = ImageWithName(@"标语");
    [view addSubview:titleImg];

    UILabel *content = [[UILabel alloc] initWithFrame:CGRectMake(ScreenX375(23), ScreenX375(135), ScreenX375(329), ScreenX375(110))];
    NSString *labelText = @"一个垂直为服装设计师服务的平台，在这里不管你是普通用户还是职业设计师，只要你有设计梦，你就可以让梦想照亮现实，让你的设计成为slogan,让每一个创意都有价值，打造人人都是服装设计师。";

    NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:labelText attributes:@{NSKernAttributeName:@(2)}];
    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
    [paragraphStyle setLineSpacing:2];
    [attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, [labelText length])];
    content.attributedText = attributedString;

    content.font = Kfont(15);
    content.numberOfLines = 0;
    content.textColor = REXADECIMALCOLOR(@"#666666");
    [self.view addSubview:content];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
